package org.yzh.protocol.commons.transform.attribute;

import io.github.yezhihao.protostar.annotation.Field;

public class WifiBasic {

    @Field(length = 6, desc = "wifiMac", charset = "HEX")
    private String mac;

    @Field(length = 1, desc = "信号强度")
    private int signal;

    public WifiBasic(){

    }

    public WifiBasic(String mac, int signal){
        this.mac = mac;
        this.signal = signal;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public int getSignal() {
        return signal;
    }

    public void setSignal(int signal) {
        this.signal = signal;
    }

    @Override
    public String toString() {
        return "WifiBasic{" +
                "mac=" + mac +
                ", signal=" + signal +
                '}';
    }
}
